"""
    从距离文件开头处6字节处开始
    注意一点，写入时空出的字符会被识别为无效字符
"""
with open("./speech.txt","w+",encoding="utf-8") as file:
    # 设定起点为距离文件开头处6字节
    file.seek(6,0)
    # 写入
    file.write("首选项差2")